package com.ebupt.migu.music.propagate.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.elasticsearch.common.recycler.Recycler;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Mapper
@DS("mysql_mg")
public interface PropagateEffectMapper  extends BaseMapper {

    /**
     * 查询指定条件下条数
     *
     * @param map
     * @return
     */
    public Integer queryEffectRecordsCount(Map<String, Object> map);


    /**
     * 查询列表
     *
     * @param map
     * @return
     */
    public List<Map<String, Object>> queryEffectRecords(Map<String, Object> map);



    /**
     * 查询列表
     *
     * @param strategyId
     * @return
     */
    public List<Map<String, Object>> queryById(String  strategyId);





      void  addEffectRecords(Map<String, Object> map);

      void  updateEffect(Map<String, Object> map);
}
